package lengxf;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

//@Mapper
public interface BlogMapper {

  Blog selectBlog(int id);

  @Select("SELECT * FROM blog WHERE id = #{id}")
  Blog selectBlo1(int id);

  @Insert("INSERT INTO `test_1`.`blog` (`id`, `name`) VALUES (#{id}, #{name});")
  void insert(Blog blog);
}
